
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>vim 入门 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../sou-suo.html" />
    
    
    <link rel="prev" href="centos7-bootkong-jian-bu-zu-wen-ti.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../code-template.html">
            
                <a href="../code-template.html">
            
                    
                    code-template
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../code-template/excelshang-chuan-xia-zai.html">
            
                <a href="../code-template/excelshang-chuan-xia-zai.html">
            
                    
                    excel动态生成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../code-template/springbootxia-zai-wen-jian.html">
            
                <a href="../code-template/springbootxia-zai-wen-jian.html">
            
                    
                    springboot下载文件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../javaji-chu.html">
            
                <a href="../javaji-chu.html">
            
                    
                    java基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../javaji-chu/javaxian-cheng-chi.html">
            
                <a href="../javaji-chu/javaxian-cheng-chi.html">
            
                    
                    多线程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../javaji-chu/javaxian-cheng-chi/xian-cheng-zhuang-tai-ji-zhuan-hua.html">
            
                <a href="../javaji-chu/javaxian-cheng-chi/xian-cheng-zhuang-tai-ji-zhuan-hua.html">
            
                    
                    线程状态及转化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../javaji-chu/javaxian-cheng-chi/javaxian-cheng-chi.html">
            
                <a href="../javaji-chu/javaxian-cheng-chi/javaxian-cheng-chi.html">
            
                    
                    java线程池
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../javaji-chu/wen-ti-pai-cha.html">
            
                <a href="../javaji-chu/wen-ti-pai-cha.html">
            
                    
                    问题排查
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../javaji-chu/jstack.html">
            
                <a href="../javaji-chu/jstack.html">
            
                    
                    jstack
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../javaji-chu/springboot.html">
            
                <a href="../javaji-chu/springboot.html">
            
                    
                    springboot
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" data-path="../javaji-chu/springboot/springboot-tian-jia-es-ji-qun.html">
            
                <a href="../javaji-chu/springboot/springboot-tian-jia-es-ji-qun.html">
            
                    
                    springboot 添加es集群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../javaji-chu/springboot/springboot-mongoduo-shu-ju-yuan-pei-zhi.html">
            
                <a href="../javaji-chu/springboot/springboot-mongoduo-shu-ju-yuan-pei-zhi.html">
            
                    
                    springboot mongo多数据源配置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../javaji-chu/netty.html">
            
                <a href="../javaji-chu/netty.html">
            
                    
                    netty
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../javaji-chu/bian-ma-wen-ti.html">
            
                <a href="../javaji-chu/bian-ma-wen-ti.html">
            
                    
                    编码问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1" data-path="../javaji-chu/bian-ma-wen-ti/ru-he-li-jie-string-getbytes-fang-fa.html">
            
                <a href="../javaji-chu/bian-ma-wen-ti/ru-he-li-jie-string-getbytes-fang-fa.html">
            
                    
                    如何理解 `String.getBytes` 方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.2" >
            
                <span>
            
                    
                    编码和编码格式
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../she-ji-mo-shi.html">
            
                <a href="../she-ji-mo-shi.html">
            
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../she-ji-mo-shi/mo-ban-fang-fa.html">
            
                <a href="../she-ji-mo-shi/mo-ban-fang-fa.html">
            
                    
                    模板方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../she-ji-mo-shi/zhuang-shi-mo-shi.html">
            
                <a href="../she-ji-mo-shi/zhuang-shi-mo-shi.html">
            
                    
                    装饰模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../she-ji-mo-shi/shi-pei-qi-mo-shi.html">
            
                <a href="../she-ji-mo-shi/shi-pei-qi-mo-shi.html">
            
                    
                    适配器模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../linux.html">
            
                <a href="../linux.html">
            
                    
                    linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="comm.html">
            
                <a href="comm.html">
            
                    
                    常用命令 comm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="awk.html">
            
                <a href="awk.html">
            
                    
                    常用命令 awk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="cut.html">
            
                <a href="cut.html">
            
                    
                    常用命令 cut
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="sed.html">
            
                <a href="sed.html">
            
                    
                    常用命令 sed
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="tr.html">
            
                <a href="tr.html">
            
                    
                    常用命令 tr
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="sort.html">
            
                <a href="sort.html">
            
                    
                    常用命令 sort
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="find.html">
            
                <a href="find.html">
            
                    
                    常用命令 find
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="zip.html">
            
                <a href="zip.html">
            
                    
                    常用命令 zip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="chang-yong-ming-ling-shuf.html">
            
                <a href="chang-yong-ming-ling-shuf.html">
            
                    
                    常用命令 shuf
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="chang-yong-ming-ling-grep.html">
            
                <a href="chang-yong-ming-ling-grep.html">
            
                    
                    常用命令 grep
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="centos7-bootkong-jian-bu-zu-wen-ti.html">
            
                <a href="centos7-bootkong-jian-bu-zu-wen-ti.html">
            
                    
                    centos7 boot空间不足问题
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.12" data-path="vim-ru-men.html">
            
                <a href="vim-ru-men.html">
            
                    
                    vim 入门
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../sou-suo.html">
            
                <a href="../sou-suo.html">
            
                    
                    搜索
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../sou-suo/elasticsearch.html">
            
                <a href="../sou-suo/elasticsearch.html">
            
                    
                    elasticsearch
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1.1" data-path="../sou-suo/elasticsearch/elasticsearchzhong-wen-fen-ci-cha-xun-wen-ti.html">
            
                <a href="../sou-suo/elasticsearch/elasticsearchzhong-wen-fen-ci-cha-xun-wen-ti.html">
            
                    
                    elasticsearch中文分词查询问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../cun-chu.html">
            
                <a href="../cun-chu.html">
            
                    
                    存储
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../cun-chu/mysqlxiu-gai-mo-ren-shi-qu.html">
            
                <a href="../cun-chu/mysqlxiu-gai-mo-ren-shi-qu.html">
            
                    
                    mysql修改默认时区
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../cun-chu/mysqlchang-yong-sql.html">
            
                <a href="../cun-chu/mysqlchang-yong-sql.html">
            
                    
                    mysql常用sql
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../cun-chu/dockerbu-shu-mysql-shi-she-zhi-huan-jing-bian-liang.html">
            
                <a href="../cun-chu/dockerbu-shu-mysql-shi-she-zhi-huan-jing-bian-liang.html">
            
                    
                    docker部署mysql时设置环境变量
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../docker.html">
            
                <a href="../docker.html">
            
                    
                    docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../docker/jing-xiang-jia-su.html">
            
                <a href="../docker/jing-xiang-jia-su.html">
            
                    
                    镜像加速
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../suan-fa.html">
            
                <a href="../suan-fa.html">
            
                    
                    算法相关
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../suan-fa/ru-he-ji-suan-shi-jian-fu-za-du.html">
            
                <a href="../suan-fa/ru-he-ji-suan-shi-jian-fu-za-du.html">
            
                    
                    如何计算时间复杂度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../netty.html">
            
                <a href="../netty.html">
            
                    
                    netty
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../netty/xu-lie-hua.html">
            
                <a href="../netty/xu-lie-hua.html">
            
                    
                    序列化
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >vim 入门</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="vim-&#x5165;&#x95E8;&#x624B;&#x518C;">vim &#x5165;&#x95E8;&#x624B;&#x518C;</h1>
<h2 id="&#x6309;&#x952E;&#x8BF4;&#x660E;">&#x6309;&#x952E;&#x8BF4;&#x660E;</h2>
<table>
<thead>
<tr>
<th style="text-align:left">&#x79FB;&#x52A8;&#x5149;&#x6807;&#x7684;&#x65B9;&#x6CD5;</th>
<th style="text-align:left"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">[Ctrl]+[f]</td>
<td style="text-align:left">&#x5411;&#x4E0B;&#x7FFB;&#x4E00;&#x9875;</td>
</tr>
<tr>
<td style="text-align:left">[Ctrl]+[b]</td>
<td style="text-align:left">&#x5411;&#x4E0A;&#x7FFB;&#x4E00;&#x9875;</td>
</tr>
<tr>
<td style="text-align:left">0</td>
<td style="text-align:left">&#x4E00;&#x822C;&#x6A21;&#x5F0F;&#x4E0B; &#x79FB;&#x52A8;&#x5230;&#x884C;&#x9996;</td>
</tr>
<tr>
<td style="text-align:left">$</td>
<td style="text-align:left">&#x4E00;&#x822C;&#x6A21;&#x5F0F;&#x4E0B; &#x79FB;&#x52A8;&#x5230;&#x884C;&#x5C3E;</td>
</tr>
<tr>
<td style="text-align:left">[Ctrl]+[u]</td>
<td style="text-align:left">&#x5220;&#x9664;&#x5F53;&#x524D;&#x884C; &#x5149;&#x6807;&#x5230;&#x884C;&#x9996;&#x4E4B;&#x95F4;&#x7684;&#x5B57;&#x7B26;</td>
</tr>
<tr>
<td style="text-align:left"></td>
<td style="text-align:left">&#x5220;&#x9664;&#x5F53;&#x524D;&#x884C; &#x5149;&#x6807;&#x5230;&#x884C;&#x5C3E;&#x4E4B;&#x95F4;&#x7684;&#x5B57;&#x7B26;</td>
</tr>
<tr>
<td style="text-align:left">G</td>
<td style="text-align:left">&#x79FB;&#x52A8;&#x5230;&#x6587;&#x4EF6;&#x7684;&#x6700;&#x540E;&#x4E00;&#x884C;</td>
</tr>
<tr>
<td style="text-align:left">nG</td>
<td style="text-align:left">n&#x4E3A;&#x6570;&#x5B57;&#x3002;&#x8868;&#x793A;&#x79FB;&#x52A8;&#x5230;&#x6587;&#x4EF6;&#x7684;&#x7B2C;n&#x884C;</td>
</tr>
<tr>
<td style="text-align:left">gg</td>
<td style="text-align:left">&#x79FB;&#x52A8;&#x5230;&#x6587;&#x4EF6;&#x7684;&#x7B2C;&#x4E00;&#x884C;&#xFF0C;&#x76F8;&#x5F53;&#x4E8E;1G</td>
</tr>
<tr>
<td style="text-align:left">n[Enter]</td>
<td style="text-align:left">n&#x4E3A;&#x6570;&#x5B57;&#x3002;&#x5149;&#x6807;&#x5411;&#x4E0B;&#x79FB;&#x52A8;n&#x884C;</td>
</tr>
<tr>
<td style="text-align:left">/word</td>
<td style="text-align:left">&#x5355;&#x8BCD;&#x67E5;&#x627E;</td>
</tr>
<tr>
<td style="text-align:left">/word + n</td>
<td style="text-align:left">&#x67E5;&#x627E;&#x6A21;&#x5F0F;&#x4E0B;&#xFF0C;&#x67E5;&#x627E;&#x4E0B;&#x4E00;&#x4E2A;&#x5355;&#x8BCD;</td>
</tr>
<tr>
<td style="text-align:left">/word + N</td>
<td style="text-align:left">&#x67E5;&#x627E;&#x6A21;&#x5F0F;&#x4E0B;&#xFF0C;&#x67E5;&#x627E;&#x4E0A;&#x4E00;&#x4E2A;&#x5355;&#x8BCD;</td>
</tr>
<tr>
<td style="text-align:left">:n1,n2s/word1/word2/g</td>
<td style="text-align:left">&#x5C06;n1&#x5230;n2&#x884C;&#x4E4B;&#x95F4;&#x7684;&#x7684; word1 &#x66FF;&#x6362;&#x6210; word2</td>
</tr>
<tr>
<td style="text-align:left">:1,$s/word1/word2/gc</td>
<td style="text-align:left">&#x5C06;&#x5168;&#x6587;&#x7684;word1 &#x66FF;&#x6362;&#x6210; word2, &#x6BCF;&#x6B21;&#x66FF;&#x6362;&#x90FD;&#x8981;&#x786E;&#x8BA4;&#x66FF;&#x6362;</td>
</tr>
<tr>
<td style="text-align:left">:s/word1/word2/g</td>
<td style="text-align:left">&#x5C06;&#x5F53;&#x524D;&#x884C;&#x7684;word1&#x66FF;&#x6362;&#x6210;word2</td>
</tr>
<tr>
<td style="text-align:left">x,X</td>
<td style="text-align:left">x &#x5220;&#x9664;&#x5149;&#x6807;&#x540E;&#x7684;&#x5B57;&#x7B26; X&#x5220;&#x9664;&#x5149;&#x6807;&#x524D;&#x7684;&#x5B57;&#x7B26;</td>
</tr>
<tr>
<td style="text-align:left">dd</td>
<td style="text-align:left">&#x5220;&#x9664;&#x5F53;&#x524D;&#x884C;</td>
</tr>
<tr>
<td style="text-align:left">ndd</td>
<td style="text-align:left">n&#x4E3A;&#x6570;&#x5B57;&#x3002;&#x5411;&#x4E0B;&#x5220;&#x9664;n&#x884C;(&#x5305;&#x62EC;&#x5F53;&#x524D;&#x884C;)</td>
</tr>
<tr>
<td style="text-align:left">yy</td>
<td style="text-align:left">&#x590D;&#x5236;&#x5149;&#x6807;&#x6240;&#x5728;&#x7684;&#x90A3;&#x4E00;&#x884C;</td>
</tr>
<tr>
<td style="text-align:left">nyy</td>
<td style="text-align:left">n&#x4E3A;&#x6570;&#x5B57;&#x3002;&#x5411;&#x4E0B;&#x590D;&#x5236;n&#x884C;(&#x5305;&#x62EC;&#x5F53;&#x524D;&#x884C;)</td>
</tr>
<tr>
<td style="text-align:left">p,P</td>
<td style="text-align:left">p &#x5C06;&#x5DF2;&#x590D;&#x5236;&#x7684;&#x6570;&#x636E;&#x5728;&#x5149;&#x6807;&#x4E0B;&#x4E00;&#x884C;&#x7C98;&#x8D34;&#xFF0C;P&#x5728;&#x4E0A;&#x4E00;&#x884C;&#x7C98;&#x8D34;</td>
</tr>
<tr>
<td style="text-align:left">u</td>
<td style="text-align:left">&#x64A4;&#x9500;&#x64CD;&#x4F5C;</td>
</tr>
<tr>
<td style="text-align:left">[Ctrl]+r</td>
<td style="text-align:left">&#x91CD;&#x505A;&#x4E0A;&#x4E00;&#x4E2A;&#x64CD;&#x4F5C;(&#x548C; u &#x76F8;&#x4E92;&#x914D;&#x5408;)</td>
</tr>
<tr>
<td style="text-align:left">.</td>
<td style="text-align:left">&#x91CD;&#x590D;&#x524D;&#x4E00;&#x4E2A;&#x64CD;&#x4F5C;</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align:left">&#x8FDB;&#x5165;&#x63D2;&#x5165;&#x6216;&#x66FF;&#x6362;&#x7684;&#x7F16;&#x8F91;&#x6A21;&#x5F0F;</th>
<th style="text-align:left"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">i,I</td>
<td style="text-align:left">&#x8FDB;&#x5165;&#x63D2;&#x5165;&#x6A21;&#x5F0F;&#xFF0C;i &#x5728;&#x5149;&#x6807;&#x6240;&#x5728;&#x5904;&#x63D2;&#x5165;, I &#x5728;&#x5F53;&#x524D;&#x884C;&#x7B2C;&#x4E00;&#x4E2A;&#x975E;&#x7A7A;&#x683C;&#x5B57;&#x7B26;&#x5904;&#x63D2;&#x5165;</td>
</tr>
<tr>
<td style="text-align:left">a,A</td>
<td style="text-align:left">&#x8FDB;&#x5165;&#x63D2;&#x5165;&#x6A21;&#x5F0F;&#xFF0C;a &#x5728;&#x5149;&#x6807;&#x6240;&#x5728;&#x5904;&#x4E0B;&#x4E00;&#x4E2A;&#x5B57;&#x7B26;&#x5F00;&#x59CB;&#x63D2;&#x5165;&#xFF0C;A &#x5728;&#x5F53;&#x524D;&#x884C;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x5B57;&#x7B26;&#x5904;&#x63D2;&#x5165;</td>
</tr>
<tr>
<td style="text-align:left">o,O</td>
<td style="text-align:left">&#x8FDB;&#x5165;&#x63D2;&#x5165;&#x6A21;&#x5F0F;, o &#x5728;&#x4E0B;&#x4E00;&#x884C;&#x63D2;&#x5165;&#xFF0C;O&#x5728;&#x4E0A;&#x4E00;&#x884C;&#x63D2;&#x5165;</td>
</tr>
<tr>
<td style="text-align:left">r,R</td>
<td style="text-align:left">&#x8FDB;&#x5165;&#x66FF;&#x6362;&#x6A21;&#x5F0F;, r &#x66FF;&#x6362;&#x5F53;&#x524D;&#x5355;&#x4E2A;&#x5B57;&#x7B26;&#xFF0C;R &#x4ECE;&#x5F53;&#x524D;&#x5B57;&#x7B26;&#x5F00;&#x59CB;&#x66FF;&#x6362;&#xFF0C;&#x77E5;&#x9053;esc&#x9000;&#x51FA;&#x4E3A;&#x6B62;</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align:left">vim &#x73AF;&#x5883;&#x7684;&#x66F4;&#x6539;</th>
<th style="text-align:left"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">:set nu</td>
<td style="text-align:left">&#x663E;&#x793A;&#x884C;&#x53F7;</td>
</tr>
<tr>
<td style="text-align:left">:set nonu</td>
<td style="text-align:left">&#x53D6;&#x6D88;&#x663E;&#x793A;&#x884C;&#x53F7;</td>
</tr>
<tr>
<td style="text-align:left">:shell</td>
<td style="text-align:left">&#x6302;&#x8D77;&#x5F53;&#x524D;vim  &#xFF0C;&#x53EF;&#x4EE5;&#x8F93;&#x5165;&#x4E00;&#x4E9B;linux&#x547D;&#x4EE4;&#xFF0C;exit&#x540E;&#x4F1A;&#x9000;&#x51FA;&#x5230;&#x4E4B;&#x524D;&#x7684;vim&#x754C;&#x9762;</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align:left">&#x5757;&#x9009;&#x62E9;(Visual Block)</th>
<th style="text-align:left"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">v</td>
<td style="text-align:left">&#x8FDB;&#x5165;&#x5757;&#x9009;&#x62E9;&#x6A21;&#x5F0F;&#xFF0C;&#x79FB;&#x52A8;&#x5149;&#x6807;&#x53EF;&#x4EE5;&#x8FDB;&#x884C;&#x53CD;&#x767D;&#x9009;&#x62E9;</td>
</tr>
<tr>
<td style="text-align:left">[Ctrl]+[v]</td>
<td style="text-align:left">&#x5757;&#x9009;&#x62E9;(&#x5217;&#x9009;)</td>
</tr>
<tr>
<td style="text-align:left">y</td>
<td style="text-align:left">&#x5C06;&#x53CD;&#x767D;&#x7684;&#x5730;&#x65B9;&#x590D;&#x5236;&#x8D77;&#x6765;</td>
</tr>
<tr>
<td style="text-align:left">d</td>
<td style="text-align:left">&#x5C06;&#x53CD;&#x767D;&#x7684;&#x5730;&#x65B9;&#x5220;&#x9664;</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align:left">&#x591A;&#x6587;&#x4EF6;&#x7F16;&#x8F91; vim file1 file2</th>
<th style="text-align:left"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">:n</td>
<td style="text-align:left">&#x7F16;&#x8F91;&#x4E0B;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;</td>
</tr>
<tr>
<td style="text-align:left">:N</td>
<td style="text-align:left">&#x7F16;&#x8F91;&#x4E0A;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;</td>
</tr>
<tr>
<td style="text-align:left">:files</td>
<td style="text-align:left">&#x5217;&#x51FA;&#x76EE;&#x524D;&#x8FD9;&#x4E2A;vim&#x6253;&#x5F00;&#x7684;&#x6240;&#x6709;&#x6587;&#x4EF6;</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align:left">&#x591A;&#x7A97;&#x53E3;&#x7F16;&#x8F91;</th>
<th style="text-align:left"></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">:sp</td>
<td style="text-align:left">&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x5206;&#x5C4F;</td>
</tr>
<tr>
<td style="text-align:left">[Ctrl]+[w]+j</td>
<td style="text-align:left">&#x6309;&#x952E;&#x7684;&#x65B9;&#x6CD5;&#x662F;: &#x5148;&#x6309;&#x4F4F;ctrl+w &#x7136;&#x540E;&#x677E;&#x5F00;&#x6309;j&#x3002; &#x5207;&#x6362;&#x5230;&#x4E0B;&#x4E2A;&#x5C4F;</td>
</tr>
<tr>
<td style="text-align:left">[Ctrl]+[w]+k</td>
<td style="text-align:left">&#x5207;&#x6362;&#x5230;&#x4E0A;&#x4E2A;&#x5C4F;</td>
</tr>
<tr>
<td style="text-align:left">[Ctrl]+[w]+q</td>
<td style="text-align:left">&#x9000;&#x51FA;&#x5F53;&#x524D;&#x5C4F;</td>
</tr>
<tr>
<td style="text-align:left">[Ctrl]+[w]+[w]</td>
<td style="text-align:left">&#x5207;&#x5230;&#x4E0B;&#x4E00;&#x4E2A;&#x53EB;&#x5C4F;</td>
</tr>
</tbody>
</table>
<h2 id="vim&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x793A;&#x610F;&#x56FE;">Vim&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x793A;&#x610F;&#x56FE;</h2>
<p><img src="../assets/timg.jpeg" alt=""></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="centos7-bootkong-jian-bu-zu-wen-ti.html" class="navigation navigation-prev " aria-label="Previous page: centos7 boot空间不足问题">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../sou-suo.html" class="navigation navigation-next " aria-label="Next page: 搜索">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"vim 入门","level":"1.5.12","depth":2,"next":{"title":"搜索","level":"1.6","depth":1,"path":"sou-suo.md","ref":"sou-suo.md","articles":[{"title":"elasticsearch","level":"1.6.1","depth":2,"path":"sou-suo/elasticsearch.md","ref":"sou-suo/elasticsearch.md","articles":[{"title":"elasticsearch中文分词查询问题","level":"1.6.1.1","depth":3,"path":"sou-suo/elasticsearch/elasticsearchzhong-wen-fen-ci-cha-xun-wen-ti.md","ref":"sou-suo/elasticsearch/elasticsearchzhong-wen-fen-ci-cha-xun-wen-ti.md","articles":[]}]}]},"previous":{"title":"centos7 boot空间不足问题","level":"1.5.11","depth":2,"path":"linux/centos7-bootkong-jian-bu-zu-wen-ti.md","ref":"linux/centos7-bootkong-jian-bu-zu-wen-ti.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"linux/vim-ru-men.md","mtime":"2018-12-30T13:04:31.946Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-30T06:15:10.391Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

